class Person:
    name='小甲鱼'
    def print_name(self):
        print(self.name)
class Rectangle:
    width=5.00
    high=4.00
    # def __init__(self):
    #     print('这个矩形的宽是：%.2f，长是：%.2f' % (self.width, self.high))
    def setRect(self):
        print('请输入矩形的长和宽...')
        self.width=float(input('长：'))
        self.high=float(input('宽：'))
    def getRect(self):
        print('这个矩形的宽是：%.2f，长是：%.2f'%(self.width,self.high))
    def getArea(self):
        print(self.width*self.high)

a=Rectangle()
a.getRect()
a.setRect()
a.getRect()
a.getArea()